nat-translation

This command configures the NAT Translation table, which lets you define network address translation (NAT) rules for translating source IP addresses per VoIP interface (SIP control and RTP media traffic) into NAT IP addresses (global - public) when the device is located behind NAT.

Syntax

(config-network)# nat-translation <Index>
(nat-translation-<Index>)# 

Command

Description

Index

Defines the table row index.

src-end-port

Defines the optional ending port range (0-65535) of the IP interface, used as matching criteria for the NAT rule.

src-interface-name

Assigns an IP network interface (configured in the IP Interfaces table) to the rule. Outgoing packets sent from the specified network interface are NAT'ed.

network-source

Defines the alias name representing a VRF or an IP address of the source network interface that is used to bind to the SIP application.

src-start-port

Defines the optional starting port range (0-65535) of the IP interface, used as matching criteria for the NAT rule.

target-end-port

Defines the optional ending port range (0-65535) of the global address.

target-ip-address

Defines the global (public) IP address.

target-start-port

Defines the optional starting port range (0-65535) of the global address.

Command Mode

Privileged User

Example

This example configures a NATed IP address (202.1.1.1) for all traffic sent from IP network interface "voice":

# configure network
(config-network)# nat-translation 0
(nat-translation-0)# src-interface-name voice
(nat-translation-0)# target-ip-address 202.1.1.1